package models

import "tuowei.com/common/models"

type SysExamination struct {
	models.Model
	Name                 string `json:"name" gorm:"type:varchar(20);not null;comment:试卷名称"`
	Description          string `json:"description" gorm:"type:text;comment:试卷描述"`
	ExType               string `json:"ex_type" gorm:"type:varchar(10);not null;comment:试卷类型"`
	Subject              string `json:"subject" gorm:"type:varchar(20);not null;comment:适用科目"` //语文/数学/英语/化学/计算机/物理/化学/生物
	PublicRange          string `json:"public_range" gorm:"type:varchar(20);comment:公开范围"`
	Province             string `json:"province" gorm:"type:varchar(20);comment:适用地区"`
	Status               int    `json:"status" gorm:"type:tinyint(1);default:1;comment:试卷状态 -1下架状态  1为上架状态"`
	Count                int    `json:"count" gorm:"int(5);default:0;comment:题目总数"`
	Cover                string `json:"cover" gorm:"varchar(255);comment:封面地址"`
	ExaminationDuration  int    `json:"examination_duration" gorm:"int(10);comment:考试时长，单位为分钟"`
	StartExaminationTime string `json:"start_examination_time" gorm:"varchar(50);comment:开考时间"`
	IsFreePublic         int    `json:"is_free_public" gorm:"int(5);default:1;comment:是否免费公开 1公开2不公开"`
	models.ControlBy
	models.ModelTime
}

func (SysExamination) TableName() string {
	return "sys_examination"
}
